package com.ryx.service;

import com.ryx.vo.req.UserOwnRoleReqVo;

import java.util.List;

/**
 * @BelongsPackage: com.ryx.service
 * @Author: 容永轩
 * @CreateTime: 2021-01-04
 * @Description:
 */
public interface UserRoleService {

    //在中间表中 通过userId把角色id集合查询出来
    List<String> getRoleIdsByUserId(String userId);

    void addUserRoleInfo(UserOwnRoleReqVo vo);

    List<String> getUserIdsByRoleIds(List<String> roleIds);

    List<String> getUserIdsByRoleId(String roleId);

    int removeUserRoleId(String roleId);
}
